<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\facade\Route;

//正常用户
Route::rule('CustomerIndex', 'admin/Customer/index');  //用户列表
Route::rule('CustomerIndexData', 'admin/Customer/indexData');  //用户列表数据
Route::get('NewCustomerIndex', 'admin/Customer/newCustomerIndex');  //新用户列表
Route::get('NewCustomerIndexData', 'admin/Customer/newCustomerIndexData');  //新用户列表
Route::get('UserBan', 'admin/Customer/userBan'); //禁封账号
Route::get('UserRid', 'admin/Customer/userRid'); //解封账号
Route::get('UserEdit', 'admin/Customer/userEdit');  //修改用户的u_id
Route::get('UserBuildFamily', 'admin/Customer/userBuildFamily'); //开通家族
Route::get('UserBuildAgreeFamily', 'admin/Customer/userBuildAgreeFamily');  //开通预审家族
Route::get('UserBuildAgreeFamilyInfo', 'admin/Customer/userBuildAgreeFamilyInfo');  //开通预审家族所需信息
Route::get('UserResetPassword', 'admin/Customer/userResetPassword'); //重设密码
Route::get('RidUserLock', 'admin/Customer/ridUserLock');  //解封宝箱
Route::get('ResetUserId', 'admin/Customer/resetUserId');  //重置原始ID
Route::get('BanUserDevice', 'admin/Customer/banUserDevice');  //禁用设备
Route::get('RidUserDevice', 'admin/Customer/ridUserDevice');  //解禁设备

Route::get('UserDiamondsSource', 'admin/Customer/diamondsSource');  //钻石明细
Route::get('UserDiamondsSourceData', 'admin/Customer/diamondsSourceData');  //钻石明细数据

//机器人
Route::rule('CustomerRobotIndex', 'admin/Customer/robotIndex');
Route::rule('CustomerRobotIndexData', 'admin/Customer/robotIndexData');
Route::rule('RobotAdd', 'admin/Customer/robotAdd');           //机器人添加
Route::rule('GetRobotRoom', 'admin/Customer/getRobotRoom');  //机器人所在的房间列表
Route::rule('NotEnterRoomRobot', 'admin/Customer/notEnterRoomRobot');  //未进入房间的机器人列表
Route::rule('RobotEnterRoom', 'admin/Customer/robotEnterRoom');  //拉机器人进入房间
Route::rule('RobotAllEnterRoom', 'admin/Customer/robotAllEnterRoom');  //批量拉机器人进入房间
Route::rule('HaveRobotRoom', 'admin/Customer/haveRobotRoom');  //含有机器人的房间
//Route::rule('LeaveRoom', 'admin/Customer/leaveRoom');  //机器人离开房间
//Route::rule('AllLeaveRoom', 'admin/Customer/allLeaveRoom');  //批量机器人离开房间

//推荐人列表
Route::get('IntroduceUserIndex', 'admin/Customer/introduceUserIndex');
Route::get('IntroduceUserIndexData', 'admin/Customer/introduceUserIndexData');
Route::get('IntroduceMember', 'admin/Customer/introduceMember');
Route::get('IntroduceBlackMember', 'admin/Customer/IntroduceBlackMember');
Route::get('IntroduceAllMember', 'admin/Customer/introduceAllMember');

Route::get('t23',function (){
    $begin_time = strtotime('2018-11-28 20:00:00');

    $userIds = (new \app\admin\model\IntroduceUser)->field('user_id')->where('f_user_id','=',3)->where('created_at','>=',$begin_time)->select();
    $returnData = [];
    return \think\facade\Config::get('custom.dev.redis_secret');
    });